
//License Information
/*
    Copyright 2010 Jozsef Jantek

    This file is part of HunterTC.

    HunterTC is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    HunterTC is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with HunterTC.  If not, see <http://www.gnu.org/licenses/>.
*/

package huntertc;


public class Shot_Steady extends Shot
{
    Shot_Steady(Char_sheet schar)
    {
        name="Steady Shot";
        setBase_cast(2);
        Calc(schar);
    }
    
    @Override public void Calc(Char_sheet schar)
    {
        avg_dmg=(int)(schar.getWep_avg_dmg()+schar.getWep_scope()+schar.getWep_ammo()*schar.getWep_speed()+schar.getRAP()*0.1+252);
        bon_crit=2*schar.t.SV[7].val;
        crit_dmg=2*schar.t.MM[27].val;
        bon_dmg=(schar.g_serpent&&schar.b_serpent?10:0);
        setAct_cast((float)(getBase_cast()/(1.15*(1+schar.getHaste()/100))));
        Opt_Dmg(schar);
        setDPS(CountDPS());
        setDPM(CountDPM());
    }
}
